﻿using System;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace WxLib.Pay
{
    /// <summary>
    /// 微信订单查询接口请求实体对象
    /// </summary>
    [XmlRoot("xml", IsNullable = false)]
    public class QueryOrderOptions
    {
        /// <summary>
        /// 公共号ID(微信分配的公众账号 ID)
        /// </summary>
        public string appid { get; set; }

        /// <summary>
        /// 店面号(微信支付分配的店面号)
        /// </summary>
        public string mch_id { get; set; }

        /// <summary>
        /// 微信订单号，优先使用
        /// </summary>
        public string transaction_id { get; set; }

        /// <summary>
        /// 店面系统内部订单号
        /// </summary>
        public string out_trade_no { get; set; }

        /// <summary>
        /// 随机字符串，不长于 32 位
        /// </summary>
        public string nonce_str { get; set; }

        /// <summary>
        /// 签名，参与签名参数：appid，mch_id，transaction_id，out_trade_no，nonce_str，key
        /// </summary>
        public string sign { get; set; }
    }
}